      <div id="side-column">
<?php if(is_single()){ ?>


        <div class="bottom-box">
    <div class="header">相关文章</div>
<?php if (function_exists('wp_related_posts')) {wp_related_posts();}?>

       </div>
<?php } ?>
<?php 	/* Widgetized sidebar, if you have the plugin installed. */
		if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ?>
<?php endif; ?>

<?php if (is_home()) { ?>
  <div class="bottom-box">
<div class="header">友情博客</div>
<ul><?php if (function_exists('top_friends')) {top_friends();}?></ul>
</div>
<?php 	/* Widgetized sidebar, if you have the plugin installed. */
		if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?>
<?php endif; ?>

<div class="bottom-box">
<div class="header">按月归档(Last Twelve)</div>
<ul><?php wp_get_archives('type=monthly&limit=12'); ?> </ul>
<!--http://codex.wordpress.org/Template_Tags/wp_get_archives-->
</div>
<?php } ?>
    </div>